<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
     <meta content="telephone=no" name="format-detection" />
    <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable = no"/>
    <title>推荐人信息确认</title>
    <link href="__PUBLIC__/wap/css/rest.css"  rel="stylesheet">
    <link href="__PUBLIC__/wap/css/user.css"  rel="stylesheet">
    <link href="__PUBLIC__/wap/css/mobiscroll.custom-2.5.0.min.css" rel="stylesheet" type="text/css"/>
</head>
<body id="u-body">
<!--绑定头部-->
<include file="Public/binding_head"/>
<!--绑定头部-->

<header id="header" class="u-header clearfix">
        <div class="u-hd-left f-left">
            <a href="{:U('wap/start/index')}" class="J_backToPrev"><span class="u-icon-px i-hd-back"></span></a>
        </div>
        <div class="u-hd-tit"><span>推荐人信息</span></div>
    </header>
    <div class="ui-form ui-border-b">
        <div class="ui-form-item ">
            <label>推荐人：</label>
            <input class="ui-border-bi" type="text" value="{$data.recommend_name}" maxlength="50" readonly datatype="c16">

        </div>
        <div class="ui-form-item ">
            <label>旗舰店：</label>
            <input class="ui-border-bi" type="text" value="{$data.flageship}" maxlength="50" readonly datatype="c16">

        </div>
<!--        <div class="ui-form-item ">
            <label>所属团队：</label>
            <input class="ui-border-bi" type="text" value="{$data.indirect2_recommend_name}" maxlength="50" readonly datatype="c16">

        </div>-->

    </div>
    <a   onclick="javascript:void(0);" class="new-abtn-type" >下一步</a>

<div style="height:40px;">
   </div>

     <!--end top-->
<!--   <include file="Public/footer" />-->
<include file="Public/wap_javascript"/>
<!--微信分享-->
<include file="Public/share_weixin"/>
<include file="Public/binding_phone.html"/>
<script>
    //定义一个产生订单请求的变量
    var levelId={$data.levelId};

    var options = {
        url: "<?php echo U('wap/start/start_set_order'); ?>",
        type: "post",
        data:{'levelId':levelId},
        dataType: 'json',
        target: "#loader",
        error: function () {
            layer.msg("服务器没有返回数据，可能服务器忙，请重试", {icon: 5});
        },
        onwait: "正在处理信息，请稍候...",
        success: function (response) {
            console.log(response);
            if (response.status == 1) {
                window.location.href = "<?php echo U('wap/start/start_pay'); ?>?pay_sn=" + response.pay_sn;
            } else if (response.status == 2) {
                //未绑定 手机
                layer.msg(response.error, {icon: 5, time: 2000}, function () {
                    get_binding();
                });

            } else {
                //alert(response.error);
                if (response.error) {
                    layer.msg(response.error, {icon: 5});
                } else {
                    layer.msg('该订单已提交', {icon: 5});
                }
            }
        }
    };
    $(".new-abtn-type").click(function () {
        if (!levelId) {
            layer.msg('开店信息错误', {icon: 5});
            //alert("商品信息错误");
        } else {
            binding_is_check = 1;
            setTimeout(function () {
                    $.ajax(options);
                }, 300);
        }
    });

</script>

   <!-- mobiscroll star-->

    <!-- mobiscroll end-->

<!--微信分享-->
<include file="Public/share_weixin"/>
</body>
</html>